//所有请求操作
import axios from "../../index"
// import qs from 'qs'


// 公海客户列表
export const poolListAxios = (params) => {
    console.log(params);
    return axios({
        url: '/customerPool/getPage',
        method: "POST",
        data: params
    })
}

// 公海列表修改
export const poolChangeAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/modifyCustomer',
        method: 'POST',
        data: params
    })
}

// 公海列表删除
export const poolListDeleteAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/moveToTrash',
        method: 'POST',
        data: params
    })
}

// 待审核列表
export const AuditingListAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/getCustomerPoolByApplication',
        method: 'POST',
        data: params
    })
}

// 新增客户
export const AddListAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/addCustomer',
        method: 'POST',
        data: params
    })
}

// 公海列表搜索
export const PoolSearchAxios = (customer_name) => {
        console.log(customer_name)
        return axios({
            url: '/customerPool/getCustomerPoolBySearch',
            method: 'POST',
            data: {
                customer_name
            }
        })
    }
    // 字典
export const DicListAxios = (dic_Name) => {
    return axios({
        url: '/dic/getChildDicList',
        method: 'POST',
        data: {
            dic_Name
        }
    })
}

// 批量删除至回收站
export const BatchDeleteAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/moveToTrash',
        method: 'POST',
        data: params
    })
}

// 转移至其他
export const MoveToOthersAxios = (params) => {
    console.log(params);
    return axios({
        url: '/customerPool/moveToOtherEmp',
        method: "POST",
        data: params
    })
}

// 公海申请
export const ApplyingAxios = (params) => {
    console.log(params)
    return axios({
        url:'/customerPool/applyCustomer',
        method: 'POST',
        data:params
    })
}


// 审核结果通过拒绝
export const AuditResultAxios = (params) => {
    console.log(params)
    return axios({
        url: '/customerPool/reviewApplication',
        method: 'POST',
        data: params
    })
}

// 获取业务员
export const EmployeeAxios = ()=>{
    console.log()
    return axios({
        url:'/employee/queryEmpList',
        method:"POST",
    })
}
